Unit tests for map.