Fix delayed handler test