[PATCH v2 2/3] d2d1/tests: Add factory fields to test context.