Test for the scanner