count words method tests
added tests for anagrams