Scan: implement scan test (in progress)