factory test case