Updated to use nodeunit to run tests