tests: Add constructor with an error argument

Make sure a constructor that sets a GError works correctly.

https://bugzilla.gnome.org/show_bug.cgi?id=727004
tests: Add regression test for callbacks with an inout array

https://bugzilla.gnome.org/show_bug.cgi?id=702508