C++ unit tests for Codec