Unit test for Token and TokenType classes