Fixed case-sensitivity in `parseUrl`, added unit tests