Token tests.
minor #399 Token tests. (keradus)

This PR was squashed before being merged into the 0.5.x-dev branch (closes #399).

Discussion
----------

Token tests.

Test cases for Token class.

Commits
-------

4ced007 Token tests.