Moved tests from JdbcScalarFunctionTest to RelationalScalarFunctionTest

In scala substring and SQL substring last index are different and for Heap we can't catch Library.Substring and change index only for take method because we can change index for all substring methods but.