Added filterWithIndex test