Test threading.