Adding java 6/7 tests