fix test_invalid_domain test

error message text has changed