added waiting for shutdown complete to test-support