Tests for mapping class.