Update encoder tests.