Request serialization unit tests and fixes.