Added function to get local text file and a test for it