Fix Flush Shutdown Test