update version and close connection after each tests