valgrind clean test encoder machine