Add test case for naming

cbugg: close bug-712