new test for encoder