initial version of unittests and ProtocolParser