Please try to prevent using Thread.sleep in tests, this is very unreliable when there is more load on the build slaves.