Improve tests for AbstractDataSource subclasses

These are fairly basic objects with almost no tests, and tests should be straightforward.
Could we call this class `TestArrayDataSource`  to be more precise and searchable.