[lib, test] adds tests, removes deps, updates package.json