With a test case to verify this and a empty datasets in general (e.g. collecting empty datasets from work dir).