Reuse mock policy, and add tests for the factory itself.