second encoder test