unit tests, reducing number of stat writing threads