testing the accelerometer