tests getEnviroment and developmentHostRewrite from middlewares.coffee