refactor tests
 Properly preserve request.host when using flask loopback (#4)