add mcapi tdes with tests