Add test passing an owned boxed structure to a callback

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