Add another workaround for async listen behavior in the tests