[ticket/12581] Always provide the proxy_factory outside of the tests

PHPBB3-12581