test scala code