Added tests for new index-based functions (#19).

All 628u tests pass.