Added some helper functions to tests_common.vala.

This reduces the complexity of boilerplate code in UnitTestSuite.vala