mock function from another module for testing