[TEST] fix compile problems on Java 8