Adding test to ensure nested object properties are persisted correctly.