Make use of count parameter in TestThreadSafety as intended