Add test for \exit command

So far I don't know how to test for a closed connection but at least I
can check if we received the word 'goodbye' which, under a controlled
test environment, is only received as a response to the exit command.