Adding unit test on Inventory.groups_list() with directory