Fixing thread_ui_test