Fix random test failure in TestChefApiClient