[v3 PATCH 2/6] d2d1/tests: Add factory fields to test context.