simple factory test.