fixed errors in encoder*_tests.cc