thread-count entities and reused threads + fixed tests for threadCount = 0