Add unit test for HTTP request accessor.