Merge similar test cases