To me an ```assertEquals(startNumberOfThreads, finishNumberOfThreads)``` seems to work, when the test case is given a bit extra time than the initial 10ms (see comment above).