add test for public