Merge pull request #5764 from neighbourhoodie/port-python-05-index-selection

Port Python test to Elixir: `05-index-selection-test‎`