Add another ui_idle() call to ape the one in test.cc and try to fix strange behaviour...