replace withContext by mocha beforeEach