testing anagrams code