Unit test and refactoring for leading hyphens in search terms.