Corrected test file validation