You could've been a bit more diplomatic in your replies but the whole situation does sound pretty ridiculous. It's a shame you didn't have any witnesses for the grilling though as it would be amusing to see them explain to their higher-ups exactly why they felt it was justified to threaten you about your exams and tell you that you deserve to fail.