Improve test framework by guaranteeing that Garbage Collection has been run