Fix tree-changes test on Unix