modified tests to use pconnect instead of connect