Improvements to search view tests