Added JUnit tests for searchMistake()