Added test case for inserting duplicate key.

Confirmed that it does work for duplicate key. Commenting out the code, since the exception will terminate the tests.