make npm test command running tests correctly