Fixed the unit test to work for JVM6 and 7+.\nChanged the junit version to a stable version