PUBDEV-2: Add tests for CBSChunk and fix inflate_impl.