Added IndexOfSlice including unit tests