proper tests (jasmine-node); "npm test" works
sync API