Testing various methods of logging in node.js modules