Tests for codecs