And a test for RegenerateToken setting the token in the map.