extended file checking and tests