Improve JettyThreadLimitTest
It should now fail less and catch more errors