including tests for unlock and error connection state