Fixed bugs for test06.java.