Fixed problem with a test related to closing connection.