Added tests for ServiceManager class