Fix connection membership test

Fixes a core connection membership test. Not sure if this is the path we want to go through.