TEST add testcase for fromfile