Add and cleanup tests for search result pagination