Rework display of public/private profile setting and add related test