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.
just a note, this isnt threadsafe, so using the same global instance across different goroutines will have undefined behaviour