added test for name map update when changing parent