fix reg tests