Scalar and table-valued tests added, minor fix to support single function calls without FROM