fix slash on the end of url, fix tests