Add tests for connected components (100% coverage)
Merge remote-tracking branch 'origin/test-connectedcomponents'