However, if it is not a primary type headache, then other tests may be needed to determine the cause.Tests used to determine the cause of a headache may include:Blood tests - various blood chemistry and other laboratory tests may be run to check for underlying conditions.Sinus x-rays - a diagnostic imaging procedure to evaluate for congestion or other problems that may be corrected.Magnetic resona