done in `thread_ui_test.js`