npm test command refractor