adding test code for Token