Clean up npm test invocation

This implements the suggestions at
<https://github.com/npm/npm/issues/2835#issuecomment-31854578>.