More correct test case version, closes connections