added new test for memory allocation/gc