Surely checking crew proficiency and systems knowledge is not an accepted/authorised part of a ramp check?
No, it's not. I have had a number of SAFA inspections, and they were nothing like this.
It is also unacceptable for the inspectors to delay a flight unless they find a major problem.