test: add and use checkIfCollectable in vm leak tests #49671
+90
−33
Closed
8000