add provider factory tests.