fix serialization of ints in response to protocol command, set up test harness (written in ruby for ease of development) and add test coverage for the first case