Refactored error handling feature tests to use custom rspec capybara matcher