Test for computedField option in toJSON