Fixed tests of ServiceManager