Fixed integration tests not closing connections

The integration tests now correctly close the connection.