[PATCH 2/5] d2d1/tests: Introduce create_factory().