see #17: client should return an error when it cannot serialize the message it is supposed to send