test nested models and collections