add test for models and factories