Add 'npm test' command, make tests interruptable.