added mocha-related fix to async tests