added test for bad input to validator.