fix reg test