Tests for 'keepAlive' option.
Refactoring of tests for reconnect, one additional test for 'autoReconnect' option.