[tests] Add more tests for SCAN-based iterators.