fix hlist_for_each_entry_safe and add some test case