Update Test.java

Change loop upper bound