added motor test cases to motor class