Before this commit, changing the value of the HOST variable didn't work because it wasn't correctly used everywhere. Moreover, the `web.base.url` was not correctly set: it is set during authenticate, but when calling it from the console instead of from a request, which is the case for tests, it is not able to grab and set the URL as needed. PR: #30000