Added test for adding duplicate hashes.