fix testCreg warning