Test and fix for MergePolicy

test for map merge policy and issue
fixed issue is old version of Merger class does not guarantee merge operation is over.