added log to factory & attempt to fix unit test