make protocolAsModule pass tests