Fix npm test script and remove unneeded dependencies