Added test for nested model serialization