Add two index erase functions, with tests. One more erase function declared but not implemented yet.