Extracted helper functions into search base test
Added: Test case for search index async handling