add test code for motion activating