indexOf test working