Added tests to check url altering and fixed a problem with altering the url [MJ-404]