Map.js refactoring for qunit test cases
Qunit test cases