Adding test to ensure nested objects are persisted correctly.