Add test for the fused type refcounting issue