QA: Simplify code in HttpConnectionTest