Add set_class_default() for tests by other modules.