Verifying automatic encoder state management works