If a person who seeks to purchase a preowned motor vehicle from a dealer under a title retention agreement or a conditional sales contract, in a city that requires emission testing and a vehicle inspection and the vehicle is to be registered by the purchaser in the county where that city is located and the vehicle has not been pretested or inspected within ninety (90) days prior to the sale, then the purchaser may require the vehicle to be inspected and pass inspections prior to the consummation of the sale of the motor vehicle. If the motor vehicle fails the emissions test or the vehicle inspection, the purchaser may waive in writing this section. In addition, this section may be waived by written agreement of the purchaser and seller of the motor vehicle prior to inspection.