Fixed factory test