Add tests for `Tree#merge`.