Refactor one test dealing with producer producer