Add tests for first-rindex