Fixed duplicated words in sorted dictionary. Added tests for WordList.