Added factory_girl gem and refactored test code