Improve tests for AbstractDataSource subclasses

These are fairly basic objects with almost no tests, and tests should be straightforward.
I think you need to replace `data` with mask here. Personally, I would expect an empty array here, just like for the data. My 2 cents.