fix last restart handler tests