Script to test output of files works