Request serialization tests.