added tests/Test1.java
changed to java1.6 compatibility