adds factory test