Bootstrapping + Connectedness Fix

There was a stupid error on net connectedness check.
I've fixed it and added a test case.
We should also add a bootstrap check test case, but let's
merge this in for now.
@whyrusleeping can you check that commit for me just in case?