unit tests for map