test failures + encoding