add and test ProtocolManager parse method