tests for scanner