Added factories and models_tests.