Added test case for zhash_autofree