wrote a test case for laod file