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