Added test for indexOf