Test case for showing the still existing BulkIteration bug.

Shows the bug mentioned in #769.

The lines 

```java
while(records.hasNext()) {
    records.next();
}
```
should not be necessary.