Tests and bug fixes for methods isPrefixOf(), isSuffixOf(), and isInfixOf().