Internal Test: Changes a token's type and then reverts it to ensure the state is managed correctly.