Update test.java

modified the file further