Added motor test code.