Added some unit tests for url.js