Keep calm. Don't work yourself up about it, because you'll make more mistakes. I failed my first test (much to everyone's surprise) before even really leaving the test centre because I stalled twice. Just don't let it get to you. Besides, they say those who pass after failing are the better drivers in the long run