anagram test code