same as get_common_name.py but simpler test case