add test for nested models