Fix factory var name in test