Tests for Scala scanner