Reset baseUrl/apiBaseUrl before each request

If we don't do this then mongoose will preserve the previous setting.
This caused tests to fail when run in a certain order as earlier tests
set baseUrl/apiBaseUrl but later tests weren't expecting it.