Switch to using have_selector
Switch to shared example
Refactor tests