Fix up tests for invalid urls