Unit test and improved docs on get_public_properties