What conditions can a potassium test help diagnose?