Test some scala code