added test case for text documents and test.txt