Added server message serilization and tests