fixes for npm test.