fix bug caused by interactions of tests using CGCreatorFactory