cloned from Test-Merge-Base