Test that #validate_number raises an exception.