Testing pickNextThread()