Add tests for upstream http module