fix creg test