Unit tests for mapData method