Fixed indexOf test (#7)