tests: Handle unexpected socket connection closure.
tests: Use EOFError instead of socket.error to report unexpected connection closure.
tests: Begin work on State Server tests.
tests: Add broadcast test to State Server unit test.
merge conflict