fix encoder test shell