Fix agent services test.