Add request creation tests.

Also, fix a bug in keepAlive using the incorrect shell reference (was
this).