Run test in ui thread