1. LINK test was fixed.
2. Replica merge was extended to support different kind of records.