fix NPE
a test for ClNs.getName using stubs