handle empty name nodes
added pseudo-test case