I'd rather have a test in thread_ui_test.js if possible ;) I mean, a real unit test :)

But let's wait for @rwldrn advice first