rewrite for coverage with nodeunit
merge