You are testing two tings here:
1. custom field creation
2. custom field fetching

Thus, you should write (1) a test that creates a custom field via a post request and check that the field exists in the database and (2) a test that fetches custom fields that you created with the help of a factory.