Ensure that Token::isValid() works.

Signed-off-by: crynobone <crynobone@gmail.com>