[test] Added `object = null`, which seems to be required to let the GC collects the object soon enough when `-debug`.