add exec function to mock module instance