reference modules in mock functions