The new tests added a check on the keys. In fact in these tests the keys can contain identical characters inside such as "aca". Check that your algorithm does not mistakenly recognize anagrams when you are in this case, for example "cca" is not an anagram of "aca".