by Dave Reid: Re-adding token_entity_info_alter() since it broke testing when it really should not have.