Add parallelism test code