encodings + test