Fixed test for index search, whitespace and removed console statements