Create vg_tests.c

This code is adopted from C++ program at https://people.gnome.org/~newren/tutorials/developing-with-gnome/html/apes02.html.