Test BoyerMoore algorithm.