make the elements in result of test.scala is distinct