Additional end to end tests around state restore

Adds 2 end to end tests around restarting trond, and fixed a bug that would send queued action runs to failed state when trond restarted.