Added npm test functionality