Fixes unit test factory_test.py using wrong unittest import.