Improve tests for AbstractDataSource subclasses

These are fairly basic objects with almost no tests, and tests should be straightforward.
Could we add what is in the state? Also, I checked that self.assertIn and self.assertNotIn are available in `unittest2.TestCase`.