Test handler
Use handler to handle server message.