test for scan