add spec to test for malformed url

I'd like to test against additional error prone URLs but this should
suffice for now.