Application of the Loh-Spillar Cosmological Test to Quasars