[TEST] Add test for 502 Bad Gateway middleware.