Last batch of tests for handling 'close' messages