adding tests for URL/URLParser; resolving bugs therein