added mresult_sql function test