Unit tests for closed and maximal itemsets with a concurrent database, dynamic number of threads depending on the number of cores