Add a context payload to the test object.

To enable passing request-bound objects into the test case, so that we can do unit test against web request.