changed the functional test ot Scala and it's passing