Fixing codec tests