add a test for reported segfault on search_with_prefix