Change the flow of factory test.