add resolveAndParseUrl() tests (mocha)