Write a function for grading tests. 90% is top score, 70% is pass and everything else is a failing grade.