Change stat_test so we don't need a network connection and can directly
test the call.

Update marshaler to support response objects