name registion init test and fix name reg bugs

and fix some alias reviewed issues