use common.npm instead of npm.install()

Also fixes the console output during test.