Add test for binary protocol violation