Fixed issue #152 - Refactored unit test callbacks to adhere to node.js standards