Tasered man had fake gun made from toilet rolls, court hears