Added some basic index tests

- Refactored and moved out IndexData and made it generic
- Added unit tests for it (and they pass, as expected)
Added IndexStore tests