D is corrent because the purpose of tests of controls is to provide reasonable assurance that the internal control procedures are designed and operating effectively. A is incorrect because the existence of incompatible functions and other conditions in internal control is primarily determined prior to tests of controls. B is incorrect because the existence of necessary controls is primarily determined prior to tests of controls. C is incorrect because substantive tests more directly address the existence of material dollar errors.