Use have_selector in rspec tests to be more specific
Refactoring tests