Fix for failing test on factory