Updated npm packages and dependencies, added more tests