Delete unused NameError#new. And add test.