mergeedgecases testcase