call `beforeExit()` in each test
wrap tests for node-webkit