added basic test support
test/index.js