The question is how to test a class that installs system services:
In my experience, service / daemon initialisation is something best performed by an operating system specific installation package, such as a redhat rpm / debian dpkg / win32 msi. Just about every operating system variant has their own unique twist on the required behaviour of a service / daemon.