Backported the tests to Rust state of master
Backported the tests to Rust state of master

Works with Rust as of commit 2d28d645422c1617be58c8ca7ad9a457264ca850.

gi-rust/grust,gi-rust/gobject-sys,gi-rust/grust-proof,gi-rust/gio-sys,gi-rust/glib-sys