updated test.java file (from BS)