Added unit test for shutdown and start.