Simplify file content check in regression tests