I agree completely with all of what has been said. I know that tests can be stressful and that stress can do funny things to people, but this sort of reaction is completely unacceptable.
Even if you think that the examiner is being unfair, you can't do anything about it. If they are going to fail you, then they will fail you, swearing at them is hardly going to help your case.
There is no place for such bad behaviour in the cockpit.