added factory girl and capybara tests