added tests for indexOf