Fixed loot counting in tests