switch to mocha for testing, make tests run in node