add test_single_task and test_threaded