Added test for the garbage collector