Token tests.

Test cases for Token class.