fix wrong test: collection.model must be a function