fixes tests for search