Merge "Dump debug information for apply_patch unit tests"