Added a Thread.Sleep because the test fails on the Jenkins VM.