testing code with no accelerometer fails