Upgrate test framework

Moved all test framework files to node_modules (loaded via npm), and upgraded to the latest version. This required fixing a few tests.