[BACKLOG-1580] - add filter for metadata data sources and its logical modes. Reviewed cache for domains and updated unit tests