Allow enabling log output from router in tests.
Handle connection refused from backend with 502 status