Added extractors for label and search with corresponding test cases