Add multithreading test