It's important that you don't put yourself under too much pressure in life - perfectionism leads to a lot of unnecessary stress. Making a few mistakes doesn't mean that you are bad at Maths or that you're a failure; it just means that you had a bad test. Believe in yourself and don't be scared of an occasional bad mark.