added test suite, use with node.js