Added Invalid transitions test for Modes in the TestMotor class