adds a test for invalid host