Adding search_metadata parsing and basic unit tests for search() method.