added sample test in Scala