Test for malformed URI