removed console output and added npm test