add more refleak tests (#120657)
Summary:
X-link: https://github.com/pytorch/pytorch/pull/120657
Approved by: https://github.com/jansel
Reviewed By: izaitsevfb
Differential Revision: D54661431
Pulled By: williamwen42
fbshipit-source-id: c934a2e5994727e266f4dcee946d2413a925848d