cli: add test around token use