A Few Quick Questions:

Hair spray is a lacquer type product that will leave a residue that will contaminate your smoke detector. Use a spray designed for smoke detector testing. Alternatively use a smoke source like an old fashioned punk stick like is used to light fireworks or an incense stick.