Introduced factory girl and completed the tests