Add a test using multi-thread