remove JDK7-dependent test

apparently this is a bug that got fixed on Java 8