Minor adjustments in encoder test case