Added member function update(oldKey, newKey) and tests for the same.