Add assertion in ServiceRefTest