Add tests with nodeunit