Added test cases for mismatched update (instead of leaving record alone).
Fix: merge records which may contain null keys properly.