Added test/test_validate_errors.py