Test for separate thread for UI events