Added test script in scala