What factors can affect the accuracy of an HbA1c test result?