add close method to TestingContext