Add proper annotations for the test utilities

This avoids g-ir-scanner complaining.
docs: Mark test utility API as private