fixed 'npm test' command and removed lint warnings