If you use the TEST option in the RANDOM statement in PROC GLM for a linear mixed model analysis, properĀ F tests are determined from the expected mean squares (EMS). So this option is highly recommended whenever you have the RANDOM statement in PROC GLM. However, the CONTRAST, LSMEANS and ESTIMATE statements might not make use of the appropriate EMS and the results provided can be incorrect. It is highly recommended to use PROC MIXED for linear mixed models analysis.