fix two # or two ? url parse bug, add unit test for urlparse