install FactoryGirl gem. refactor some tests. update for authentification process.