Tested with nodeunit