Test for scanner