[Review]: Test map sources (#664)

I'll be adding tests to classes in map/sources in this PR (issue #664 ). What I have now is by no means the final result, and more stuff will be added in due time.
This is going to be one long PR!
Should we remove these two commented lines?