Move the depenedncies needed to run the tests into test/package.json and manage it using lerna. This should make it easier to selectively install only what's needed to run the software.