test implementation for simple copy & marksweep GC