add mocha test for map model