Trying to fix refcnting tests