Fix definition container test
Fix definition container test

Keys should be unique, this was an assumption already made in other
places but now more enforced with caching based on key.

Contributes to CURA-1654

onitake/Uranium,onitake/Uranium