tried to add capybara tests but I don't know it well enough. added a spec instead