added functionality to return instances of models to the factoryTrait with tests on traitConcrete class