On clean database perform auto registration and then do:
select * from escalations;
Examine nextcheck and see that escalation will be kept for one hour and that it's status is active.
Following parts of code will never be executed on Zabbix server
It is immediately marked as completed and deleted because it has no recovery operations an no steps