Add script to test file correctness