Modify Accelerometer lua test sample