Bug fixed, i.e. result of merge operation is used rather than ignored.
test method added.