add new tests for server checking bytes encoding/decoding