Added test code for gyro