Test for glucose-6-phosphate dehydrogenase deficiency