fix error when running "npm test"