Fix test for undef/empty hash_ref.