add tests for reusing existing data in scanner