Implemented testIndexOf() test.