test_validation.py: tests IP/domain validation