TokenResource implementation & test