Test for ServiceAuth method.