Release connection, and update test cases.