bug fixing test.java