Bug 10361: (follow-up) add tests for search history functions