Added multi-threading of test generation