test against jdk6 and 7