restructure this module for coveralls using nodeunit