added tests for map