Test token creation.