add service manager and finish service test