add testbutton for accelerometer
correct error in class accelerometer