Add tests for urlParser and make them pass.