improve test-map.cc

this commit improves the test program for map.hh by making use of
pretty_print.hh and assert.hh