testing protocol errors