testcase for loading file