Add infrastructure for application tests

Based on gnome-weather.

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