test receiving JSON message