remove the thread.sleep statement, it is not necessary for the test case