Add testcase to ensure merging an early part of a branch is done properly