Removed Thread.sleep from the UnitTest, using the Latch instead