fixing silly unitialised refcount in test_hash