throw tests and npm test