added long support for protocol version 0
added tests for long string format support