test for scan()