Added factory method for non nil testing