close mongo connection in the connection test