protocol.c unit test fixed