Added custom object serialization tests.