Rename 'parseHostPort' to 'parseUrl' and add tests