Added factory test snippet