Fixed bugs in Testing.java