add rest of motor test code