Add tests for Continent

Tests for the most important methods of Continent have been
implemented, and have already helped discover a few bugs.