updated DispatchTest.java's run method