make tests run in node-webkit

The tests work again!