Change to java 1.7, added misc. tests based on QE tests.