AMBARI-8891. Ambari UI Unit tests. Fix "floating" tests (onechiporenko)