matching mocha treatment of require option