test mocha opts & beforeAll hook