made use of the already available CountDownLatch in the TestListener