fixing a test case for iteration over connected components, as splitting into connected components in NetworkX library is not deterministic. Added a condition for a correct test case.
fixing a test case for iteration over connected components, as splitting into connected components in NetworkX library is not deterministic. Added a condition for a correct test case.

aganezov/bg,aganezov/bg