add a profiling test case that uses threads