Improve tests for AbstractDataSource subclasses

These are fairly basic objects with almost no tests, and tests should be straightforward.
That's what I would expect, too, but given the current behaviour, this is what is consistent.