test map and graph