Start and stop services in test script