fix target_version should be public int, and fix tests
add tests for cybinary protocol