add spec for connection events