Fix hashtable set method and tests to allow updating values