test file validator