Get actions.index.add function with tests