What is HbA1c and why is it an important test for a diabetic?