Make npm test work properly