adding test for hierarchy name preservation