added state_machine & factory girl gems, to manage state & set up test factories