fix anagram grouping sanity test to fail if it returns an empty array for nonempty string