re.store modules with mock dependencies