added unit test for connection state actor