Added factory mock to tests.