Merged binary protocol reading and writing tests to use the same data.