apply debug checks to test files.