fixed sever spec, and added spec for chat event