test file before loading