automaticaly add slash between api_root_url & path
and fix the tests