Added tests for startup / shutdown polling.