Fix: removed factory reference from tests