Fixed test case for HHVM garbage collection--backported from master

This change is necessary in order for this test case to work with HHVM