core_test - clean up conn function