added condition to test Input class