Emit error on endpoint registration error + Tests