Add more unit test for markDuplicate().