Return scc counts; add some tests.
Move tests into seperate file.