added shutdown test