Adding test for Java 7