The education secretary praises testing in schools amid concerns that more pupils are being sent home.