Refactors invalid_search helper

Changes invalid_search helper into looks_like_invalid_search and moves
search to the actual test spec.