Add a test for muti thread for_each