allow for multiple deferred factories
enable deferred library integration in the tests. Closes #1