add ref_count test for queue