Replace have_content tests with have_selector