bugs in HttpRequestBuilder (plus test case)