Moved method that figures out index spec to re-index for to IndexSpec
Added tests for IndexSpec