all three tests passing with index search