Fix search tests for slices