Updated test for JDK7 runtime