add basic test for scan with filter.