Reduce memory usage of update_walk_file and present_walk_file unit tests