remove localhost from the request url in the tests