test of encoding