mockagent with servicePid