add nodeunit dependency
initial calculation and test