Fixing test to properly report results from garbage collection