Adding test code for motor circuit.