Implement the unit test for the Scan method