added 'create' option to mock a non defined function