fixed the repos not saving, more tests for inventories