added server protocol unit tests