Fix for Flaky test TestServiceWithPredefinedNetwork
Fix for Flaky test TestServiceWithPredefinedNetwork

	TestServiceWithPredefinedNetwork test case was failing
	at times. To fix the issue, added new API to check
	for services after we clean up all services. Tested
	multiple times and this sould fix flaky issue.

Signed-off-by: selansen <a62f9100cf092bb75687cfe06b46746c2a5d2558@docker.com>

justincormack/docker,thaJeztah/docker,x1022as/docker,jimjag/docker,bearstech/moby,cpuguy83/docker,laijs/docker,Ramzec/docker,jlhawn/docker,allencloud/docker,trebonian/docker,tmp6154/docker,tonistiigi/docker,maxamillion/docker,vdemeester/docker,cpuguy83/docker,mikebrow/docker,gnailuy/docker,yosifkit/docker,rremer/moby,ibuildthecloud/docker,Ramzec/docker,estesp/docker,moul/docker,cpuguy83/docker,paralin/docker,rancher/docker,duglin/docker,duglin/docker,laijs/moby,mahak/docker,docker/docker,flavio/docker,nawawi/docker,vdemeester/docker,moby/moby,jlhawn/docker,tmp6154/docker,SvenDowideit/docker,tonistiigi/docker,jameszhan/docker,AkihiroSuda/docker,trebonian/docker,kolyshkin/docker,konstruktoid/docker-upstream,maxamillion/docker,moul/docker,mikebrow/docker,Mokolea/docker,Mokolea/docker,rremer/moby,yosifkit/docker,allencloud/docker,jthelin/docker,paralin/docker,crosbymichael/docker,jlhawn/docker,mahak/docker,Mokolea/docker,allencloud/docker,duglin/docker,gnailuy/docker,estesp/docker,nawawi/docker,ibuildthecloud/docker,kolyshkin/moby,tophj-ibm/moby,tophj-ibm/docker,bearstech/moby,konstruktoid/docker-upstream,SvenDowideit/docker,tophj-ibm/docker,jwhonce/docker,tonistiigi/docker,mikebrow/docker,KarthikNayak/docker,jameszhan/docker,AkihiroSuda/docker,mahak/docker,bearstech/moby,AkihiroSuda/docker,x1022as/docker,jameszhan/docker,konstruktoid/docker-1,vdemeester/docker,johnstep/moby-moby,yongtang/docker,dmcgowan/docker,mahak/docker,pradipd/moby,nalind/docker,paralin/docker,Ramzec/docker,yosifkit/docker,cpuguy83/docker,nalind/docker,ibuildthecloud/docker,moby/moby,scotttlin/docker,nalind/docker,crosbymichael/docker,moul/docker,kojiromike/docker,jimjag/docker,kojiromike/docker,rancher/docker,YuPengZTE/docker,yongtang/docker,ibuildthecloud/docker,trebonian/docker,docker/docker,unclejack/docker,jwhonce/docker,kojiromike/docker,flavio/docker,scotttlin/docker,KarthikNayak/docker,YuPengZTE/docker,AkihiroSuda/docker,djs55/docker,dmcgowan/docker,jvanz/docker,jvanz/docker,jthelin/docker,thaJeztah/docker,justincormack/docker,konstruktoid/docker-upstream,ibuildthecloud/docker,laijs/moby,kolyshkin/docker,tmp6154/docker,paralin/docker,maxamillion/docker,dims/docker,rremer/moby,pradipd/moby,yosifkit/docker,kolyshkin/moby,KarthikNayak/docker,bearstech/moby,gnailuy/docker,nalind/docker,flavio/docker,thaJeztah/docker,tophj-ibm/moby,gnailuy/docker,estesp/docker,scotttlin/docker,moul/docker,Ramzec/docker,thaJeztah/docker,rancher/docker,dmcgowan/docker,nawawi/docker,johnstep/moby-moby,Mokolea/docker,konstruktoid/docker-1,laijs/docker,tophj-ibm/docker,nawawi/docker,justincormack/docker,jwhonce/docker,tophj-ibm/moby,moby/moby,crosbymichael/docker,konstruktoid/docker-upstream,djs55/docker,johnstep/moby-moby,x1022as/docker,laijs/moby,pradipd/moby,moby/moby,YuPengZTE/docker,jvanz/docker,docker/docker,kolyshkin/moby,jimjag/docker,dims/docker,konstruktoid/docker-1,flavio/docker,SvenDowideit/docker,yongtang/docker,djs55/docker,jimjag/docker,laijs/docker,dims/docker,trebonian/docker,unclejack/docker,unclejack/docker