Response serialization tests.