added tests for anagrams