Test trigger_registration_error()