Passing wordOccurrences and sentence occurrences test