Fix race condition in the tests.

Child classes my override Handler.CreateRequest() and we need to fully
create it before we can write the body.