added test for accelerometer