test for full startup, run, shutdown, restart lifecycle