test file loop