Tests for map functions.