Original: The Countess claims that she has told the Count that Cherubino was in the closet only to test him.
Simplified: The Countess says that she has told the Count that Cherubino was in the cupboard only to test him.