TRUNK-4254 : Added tests for autclose visit task