Fix one test that started to break in Java-8