added a test for motion sensor