indexOf test coverage