add jasmine unit tests, fix bug with slash in the url [#56998822]