encoder test final