Added functions to map-helpers
Added tests for map-helpers.js