Source key fix
Description
Follow up fix for !1124 (merged), ensuring that get_unique_key is only called after tracking. generate_key was previously calling it when sources are created.
Changes proposed in this merge request:
- Move
generate_keytoElement._source_cachedmethod. - Add tests to ensure
get_unique_keyisn't called before track stage
Edited by Raoul Hidalgo Charman