Added new methods to Index and IndexTest

Split up the method Index into different methods and added the method
restore to reduce redundancy in calling the "restore" argument.
Added two assertions to cover ContainsValue in Entity.cs
Added minor calls to monitorInput and tcpSplunkInput