refactor tests with factory girl and selenium webdriver