Fix a few routing issues

Fix a few routing issues.

Refs #4120 
Refs #4126
I don't get this test, why setting a name will make `getName()` return empty whereas not setting it returns something?