Utility for monkey-patching and wrapping global and external module functions. To run the tests: nodeunit testing/tests