changed modelData to model in the collections, which was always returning the model instance. added a test to make sure it continues to do that.