add persistant map and its test