fix exclude_file testing to more reasonable