add tests with nodeunit