adding tests for read/write integers to/from binary string
Merge branch 'dev_protocol' into test