Extensions are loaded at application startup causing factories to be registered. In test cases however, this step does not get executed leading to exceptions.
A workaround is to load extensions in conftest.py (pytest) and call their ready method to cause factories to be registered.