Unit test for explicit connect method