Add tests about token encoding (failing for now).
Implement h_action.
Add accessor methods.