added test case to test gc