Tests for the Search endpoint