Arrange algorithms tests to match their definitions order
Test the `connected?` predicate