finished map_object including some unit and functional tests