fixed TestTracing and replaced Thread.sleep with GenericTestUtils.waitFor.