define.mock:
 * mock require.optional
 * rewrite loader module unit test