test rewriting existing values in hash table