implement require() and use sessionWireDependencies to allow mock to be
used in dynamically loaded dependencies in side define.