reworked unit testing. connected component division seems to work