refakor _bibdk_custom_search_is_advanced_search_expanded for better test-ability