Test map sources

I'll be adding tests to classes in map/sources in this PR. 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!