Fixed some small bugs in TestJava2D.java