Add a test for inserting with an existing key