added capybara and rspec tests for name and redirection