add test for analysis get_public