Bug 1697 - Restructed function control flow to aviod branching across initialization.
## this tests that receiving a nonexistent command is handled properly## by a clientCLIENTEXPECT_COMMAND AUTHSEND 'NONEXISTENT_COMMAND foo bar baz blah blah'EXPECT_COMMAND ERROREXPECT_STATE WAITING_FOR_INPUT