Add unit and e2e tests to npm test