Setup all framework for testing, also added some factories and test for models.