Add unit testing to common/types/loot

Add unit testing to common/types/loot