What conditions can a calcium test diagnose?