Added a timeout parameter for splunk Service. Added tests.