Got the tests working in IDEA and converted some of the old tests to the nodeunit test framework.