test the name->element mapping