Fixed typo in tests.

Partial functions to map _related_fields to objects by name without
having undefined reference errors.