making tests work in watch mode using events and async library