added tests for map and forEach