shutdown funciton test