Add fix for Java 7

Add compatibility with Java 7 where the first element in Iterator parameter provider is dropped due to different handling of casting in Java 7 and Java 8.
The test is designed such that if the first test case is dropped it will fail, taking advantage the sequential execution of the parameters in the given Iterator.