Handle threads per core on test