Further tests added to the SQL functions.