diff --git a/tests/gimarshallingtests.c b/tests/gimarshallingtests.c
index 9f1d0d4..dd4a82b 100644
--- a/tests/gimarshallingtests.c
+++ b/tests/gimarshallingtests.c
@@ -4465,6 +4465,17 @@ gi_marshalling_tests_filename_list_return (void)
     return NULL;
 }
 
+/**
+ * gi_marshalling_tests_return_param_spec:
+ *
+ * Returns: (transfer full): a #GParamSpec
+ */
+GParamSpec *
+gi_marshalling_tests_return_param_spec()
+{
+  return g_param_spec_string("test-param", "test", "This is a test", "42", G_PARAM_READABLE)
+}
+
 
 enum  {
     DUMMY_PROPERTY,
diff --git a/tests/gimarshallingtests.h b/tests/gimarshallingtests.h
index 7bcbffb..efe5024 100644
--- a/tests/gimarshallingtests.h
+++ b/tests/gimarshallingtests.h
@@ -1002,6 +1002,8 @@ glong gi_marshalling_tests_overrides_object_method (GIMarshallingTestsOverridesO
 
 GIMarshallingTestsOverridesObject *gi_marshalling_tests_overrides_object_returnv (void);
 
+GParamSpec *gi_marshalling_tests_return_param_spec();
+
 /* Properties Object */
 
 #define GI_MARSHALLING_TESTS_TYPE_PROPERTIES_OBJECT (gi_marshalling_tests_properties_object_get_type ())
