Add tests for models and factories #24