Added explicit tests for merging right/left/up/down.