rectified errors in capybara tests