added factory test code