add protocol handling test