Fixed broken test case and guaranteeig call to closeAPI

15 jobs for 827-regression-in-automated-browser-test-after-merge in 35 minutes and 46 seconds (queued for 3 seconds)