set up capybara helpers and fixed bug on index page where current_user is nil owing to session end