Protocol: added tests for container encoding