factory method without testInstance