Updates to factory unit test.