improved nodeunit subgenerator