Adding more test cases and created doesWordExist for Trie class