Use g_test_add with setup and teardown functions