fixes factory to not make tests fail