* test/automated/xwidget-tests.el (xwgir-call-function): New test.
* src/xwidget.c (Fxwgir_call_function): Improve errors handling.