Add possibility to choose number of threads for testing