test: Updated test case for scan method