test of accelerometer