added tests for scala scanner