Consequences of Contesting and exam

I have a question.... When is it appropriate to contest a non-passing score? Also - What are the consequences of contesting an exam? I know it can't be as easy as paying a fee.