Added -threads option to ktest.