Fix failing test on the scanner