add tests for indexing types